<?php
/**
 *
 */

namespace Selibra\Task;


use Swoole\Server;
use Selibra\Task\Protocol\TaskConsumer;

class Task
{

    /**
     * @var Server
     */
    private $server;


    public function __construct(Server $server)
    {
        $this->server = $server;
    }


    /**
     * @param $message
     */
    public function send($message)
    {
        $this->server->task($message);
    }

}